<?php
namespace app\mobile\controller;

use app\mobile\model\Config;
use think\Request;

/**
 * Class OrderAct
 * @package app\mobile\controller   订单处理
 */
class OrderAct extends BaseController
{
    /*
         * 物流详情
         */
    public function express_details(Request $request)
    {
        $express_number = $request->param('express_number');  //物流单号
        $express_name = $request->param('express_name');   //物流名称
        $config = new Config();
        // 快递100
        $data['customer'] = $config->where('varname', 'web_express_customer')->value('varvalue');
        $data['param'] = json_encode(['com' => $express_name, 'num' => $express_number]);
        $data["sign"] = strtoupper(md5($data['param'] . $config->where('varname', 'web_express_key')->value('varvalue') . $data['customer']));
        return $this->fetch('');
    }
}